package com.xj.hk.entity;

import java.text.SimpleDateFormat;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 视频实体类
 * @author xj
 * @version 2019年7月27日上午10:01:11
 */
@Entity
@Table(name = "sp")
public class Sp {
	
   private Integer id;
   private String addtime=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());// 确定数据唯一的时间;
   private String path;
   private Integer type;
   private String title;
   
   @Id
   @GeneratedValue(strategy = GenerationType.IDENTITY)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}	
	public String getAddtime() {
		return addtime;
	}
	public void setAddtime(String addtime) {
		this.addtime = addtime;
	}
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}    
	
}
